Efficiently intertwining widening and narrowing

نویسندگان

  • Gianluca Amato
  • Francesca Scozzari
  • Helmut Seidl
  • Kalmer Apinis
  • Vesal Vojdani
چکیده

Non-trivial analysis problems require posets with infinite ascending and descending chains. In order to compute reasonably precise post-fixpoints of the resulting systems of equations, Cousot and Cousot have suggested accelerated fixpoint iteration by means of widening and narrowing (Cousot and Cousot, 1976, 1977a). The strict separation into phases, however, may unnecessarily give up precision that cannot be recovered later, as over-approximated interim results have to be fully propagated through the equation the system. Additionally, classical two-phased approach is not suitable for equation systems with infinitely many unknowns—where demand driven solving must be used. Construction of an intertwined approach must be able to answer when it is safe to apply narrowing— or when widening must be applied. In general, this is a difficult problem. In case the right-hand sides of equations are monotonic, however, we can always apply narrowing whenever we have reached a post-fixpoint for an equation. The assumption of monotonicity, though, is not met in presence of widening. It is also not met by equation systems corresponding to context-sensitive inter-procedural ✩This article extends and generalizes results presented by Apinis et al. (2013) by integrating key ideas from Amato and Scozzari (2013). ✩✩This work was partially supported by the ARTEMIS Joint Undertaking under grant agreement n° 269335 and from the German Science Foundation (DFG). Email addresses: [email protected] (Gianluca Amato), [email protected] (Francesca Scozzari), [email protected] (Helmut Seidl), [email protected] (Kalmer Apinis), [email protected] (Vesal Vojdani) Preprint submitted to Elsevier March 4, 2015 analysis, possibly combining context-sensitive analysis of local information with flow-insensitive analysis of globals (Apinis et al., 2012). As a remedy, we present a novel operator that combines a given widening operator with a given narrowing operator . We present adapted versions of round-robin as well as of worklist iteration, local and side-effecting solving algorithms for the combined operator and prove that the resulting solvers always return sound results and are guaranteed to terminate for monotonic systems whenever only finitely many unknowns (constraint variables) are encountered. Practical remedies are proposed for termination in the non-monotonic case. Beyond that, we also discuss extensions of the base local solver that allow to further enhance precision such as localized application of the operator and restarting of the iteration for subsets of unknowns.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Localizing Widening and Narrowing

We show two strategies which may be easily applied to standard abstract interpretation-based static analyzers. They consist in 1) restricting the scope of widening, and 2) intertwining the computation of ascending and descending chains. Using these optimizations it is possible to improve the precision of the analysis, without any change to the abstract domains.

متن کامل

Enhancing Top-Down Solving with Widening and Narrowing

We present an enhancement of the generic fixpoint algorithm TD which can deal with widening and narrowing even for non-monotonic systems of equations. In constrast to corresponding enhancements proposed for other standard fixpoint algorithms, no extra priorities on variables are required. Still, a mechanism can be devised so that occurrences of the widening/narrowing operator are inserted as we...

متن کامل

Comparing the Galois Connection and Widening/Narrowing Approaches to Abstract Interpretation

The use of infinite abstract domains with widening and narrowing for accelerating the convergence of abstract interpretations is shown to be more powerful than the Galois connection approach re­ stricted to finite lattices (or lattices satisfying the chain condition).

متن کامل

Similarity solutions for slender rivulets with thermocapillarity

We use the lubrication approximation to investigate the steady flow of slender non-uniform rivulets of a viscous fluid on an inclined plane that is either heated or cooled relative to the surrounding atmosphere. Four non-isothermal situations in which thermocapillary effects play a significant role are considered. We derive the general equations for a slender rivulet subject to gravity, surface...

متن کامل

Comparison of the Galois Connection and Widening/Narrowing Approaches to Abstract Interpretation

The use of infinite abstract domains with widening and narrowing for accelerating the convergence of abstract interpretations is shown to be more powerful than the Galois connection approach re­ stricted to finite lattices (or lattices satisfying the chain condition).

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Sci. Comput. Program.

دوره 120  شماره 

صفحات  -

تاریخ انتشار 2016